package com.teamwhole.modules.act.dao;

import org.apache.ibatis.annotations.Update;

import com.teamwhole.core.persistence.annotation.MyBatisDao;
import com.teamwhole.core.persistence.dao.CrudDao;
import com.teamwhole.modules.act.entity.Act;

@MyBatisDao
public interface ActDao extends CrudDao<Act> {

	/**
	 * 业务数据关联流程实例
	 * @param act
	 * @return
	 */
	@Update("UPDATE ${businessTable} SET proc_ins_id = #{procInsId} WHERE id = #{businessId}")
	public int updateProcInsIdByBusinessId(Act act);

	/**
	 * 获取流程实例ID
	 * @param act
	 * @return
	 */
	//@Select("SELECT proc_ins_id FROM ${businessTable} WHERE id = #{businessId}")
	//public String getProcInsId(Act act);

}
